﻿using System.Collections;
using System.Collections.Generic;
using UFrame;
using UFrame.ECS;
using UnityEngine;

public class USystemMono : MonoBehaviour, IMa
{
    private bool isInit = true;
    public bool isRunInit = false;
    public virtual bool IsInit
    {
        get { return isInit; }
        set { isInit = value; }
    }

    [HideInInspector] public UEntity entity;
    [HideInInspector] public float initTime = 0f;
    [HideInInspector] public float timeout = 6f; //4秒内必须初始化完毕

    public virtual void Release()
    {
    }

    public virtual void Init()
    {
    }

    /// <summary>
    /// 当前Entity初始化
    /// </summary>
    public virtual void EntityCompleteInit()
    {
    }
}